#include "material.h"

//TODO : mettre les valeur en globale et construire avec des string

Material::Material()
{
	this->color = Vector(0, 0, 0);
	this->texture.push_back(pair<double, double>(0,0));
}

Material::Material(const double material[]){
	this->id = (int)material[0];
	this->color = Vector(material[2], material[3], material[4]);
	for(int i = 5; i < (material[1] * 2) + 5; i = i + 2){
		this->texture.push_back(pair<double, double>(material[i], material[i + 1]));
	}
}


Material::~Material()
{
}

vector<pair<double, double> > Material::getTexture(){
	return this->texture;
}

Vector Material::getColor(){
	return this->color;
}

int Material::getId(){
	return this->id;
}